package com.example.demo.webservice;


import javax.xml.ws.Endpoint;

/**
 * @author lufei
 * @version 1.0
 * @created 18-5-8
 */
@javax.jws.WebService
public class WebService {

    public void sayHi(){
        System.out.println("hi,webservice");
    }

    public static void main(String[] args) {
        Endpoint.publish("http://localhost:8081/service/sayHi",new WebService());
        System.out.println("service success");
    }
}
